package com.xywy.common.constants;

/**
 * Created by xiaogd on 4/24/14.
 */
public interface ErrorCode {
    /**
     * 错误的header错误
     */
    public static final int ERROR_HEADER = -101;
    /**
     * 返回错误,不区分类型
     */
    public static final int ERROR = -200;
    /**
     * 未知类型错误
     */
    public static final  int ERR_UNKNOWN = -100; //未知的异常
    /**
     * 没有网络
     */
    public  static final int ERR_NO_NETWORK = -1; //没有网络
    /**
     * 错误的链接
     */
    public  static final int ERR_CLIENTPROTOCOL = -2; //一般出现在发起的请求的链接格式不正确上
    /**
     * 超时
     */
    public  static final int ERR_TIMEOUT = -3; //链接超时
    /**
     * 手动中断
     */
    public static final int SHUTDOWN = -4;
    /**
     * 连接池被关闭
     */
    public  static final int POOL_SHUT_DOWN = -5; //连接池关闭IllegalStateException

    /**
     * 可确定为服务端错误
     */
    public static final int ERR_SOCKET = -6;//出现次数低，服务端错误

}
